HAL PWR constants migration ¶
This section provides information about the HAL PWR constants migration.
HAL PWR memory retention ¶
|
HAL1 |
HAL2 |
|---|---|
|
In
|
In
|
#define PWR_SRAM6_PAGE8_STOP
#define PWR_SRAM6_PAGE7_STOP
#define PWR_SRAM6_PAGE6_STOP
#define PWR_SRAM6_PAGE5_STOP
#define PWR_SRAM6_PAGE4_STOP
#define PWR_SRAM6_PAGE3_STOP
#define PWR_SRAM6_PAGE2_STOP
#define PWR_SRAM6_PAGE1_STOP
#define PWR_SRAM6_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_SRAM6_STOP0123
/* and */
/* For PAGEx you need to specify the page_indx and page_nbr */
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM6_PAGEx_STOP)
|
Example HAL_PWR_LP_EnableMemoryPageRetention(HAL_PWR_MEMORY_RETENTION_SRAM6_STOP0123,
page_idx,
page_nbr)
|
HAL PWR memory retention SRAM5 stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
|
In HAL1, separate defines are used for each page when calling the
|
HAL2 use one single define:
|
#define PWR_SRAM5_PAGE13_STOP
#define PWR_SRAM5_PAGE12_STOP
#define PWR_SRAM5_PAGE11_STOP
#define PWR_SRAM5_PAGE10_STOP
#define PWR_SRAM5_PAGE9_STOP
#define PWR_SRAM5_PAGE8_STOP
#define PWR_SRAM5_PAGE7_STOP
#define PWR_SRAM5_PAGE6_STOP
#define PWR_SRAM5_PAGE5_STOP
#define PWR_SRAM5_PAGE4_STOP
#define PWR_SRAM5_PAGE3_STOP
#define PWR_SRAM5_PAGE2_STOP
#define PWR_SRAM5_PAGE1_STOP
#define PWR_SRAM5_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_SRAM5_STOP0123
/* and */
/* For PAGEx you need to specify the page_indx and page_nbr */
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM5_PAGEx_STOP)
|
Example HAL_PWR_LP_EnableMemoryPageRetention(HAL_PWR_MEMORY_RETENTION_SRAM5_STOP0123 ,
page_idx,
page_nbr)
|
HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM5_FULL_STOP)
|
HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM5_STOP0123)
|
HAL PWR memory retention SRAM4 stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_SRAM4_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_SRAM4_STOP012
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM4_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM4_STOP012)
|
HAL PWR memory retention JPEGRAM stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_JPEGRAM_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_JPEGRAM_STOP01
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_JPEGRAM_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_JPEGRAM_STOP01)
|
HAL PWR memory retention DSIRAM stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_DSIRAM_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_DSIRAM_STOP01
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_DSIRAM_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_DSIRAM_STOP01)
|
HAL PWR memory retention SRAM2 standby mode ¶
|
HAL1 |
HAL2 |
|---|---|
|
HAL1 uses separate defines for each page given to the function
|
HAL2 use one single define:
|
#define PWR_SRAM2_PAGE1_STANDBY
#define PWR_SRAM2_PAGE2_STANDBY
|
#define HAL_PWR_MEMORY_RETENTION_SRAM2_STOP3_STANDBY
/* and */
/* For PAGEx you need to specify the page_indx and page_nbr */
|
|
Example HAL_PWREx_EnableSRAM2ContentStandbyRetention(PWR_SRAM2_PAGE1_STANDBY)
|
Example HAL_PWR_LP_EnableMemoryPageRetention(HAL_PWR_MEMORY_RETENTION_SRAM2_STOP3_STANDBY,
page_idx,
page_nbr)
|
HAL PWR memory retention SRAM1 run mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_SRAM1_FULL_RUN
|
#define HAL_PWR_MEMORY_RETENTION_SRAM1_RUN
|
|
Example HAL_PWREx_EnableRAMsContentRunRetention(PWR_SRAM1_FULL_RUN)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM1_RUN)
|
HAL PWR memory retention SRAM2 run mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_SRAM2_FULL_RUN
|
#define HAL_PWR_MEMORY_RETENTION_SRAM2_RUN
|
|
Example HAL_PWREx_EnableRAMsContentRunRetention(PWR_SRAM2_FULL_RUN)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM2_RUN)
|
HAL PWR memory retention SRAM3 run mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_SRAM3_FULL_RUN
|
#define HAL_PWR_MEMORY_RETENTION_SRAM3_RUN
|
|
Example HAL_PWREx_EnableRAMsContentRunRetention(PWR_SRAM3_FULL_RUN)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM3_RUN)
|
HAL PWR memory retention SRAM4 run mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_SRAM4_FULL_RUN
|
#define HAL_PWR_MEMORY_RETENTION_SRAM4_RUN
|
|
Example HAL_PWREx_EnableRAMsContentRunRetention(PWR_SRAM4_FULL_RUN)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM4_RUN)
|
HAL PWR memory retention SRAM5 run mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_SRAM5_FULL_RUN
|
#define HAL_PWR_MEMORY_RETENTION_SRAM5_RUN
|
|
Example HAL_PWREx_EnableRAMsContentRunRetention(PWR_SRAM5_FULL_RUN)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM5_RUN)
|
HAL PWR memory retention SRAM6 run mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_SRAM6_FULL_RUN
|
#define HAL_PWR_MEMORY_RETENTION_SRAM6_RUN
|
|
Example HAL_PWREx_EnableRAMsContentRunRetention(PWR_SRAM6_FULL_RUN)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM6_RUN)
|
HAL PWR memory retention SRAM3 stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
|
HAL1 uses separate defines for each page given to the function
|
HAL2 use one single define :
|
#define PWR_SRAM3_PAGE13_STOP
#define PWR_SRAM3_PAGE12_STOP
#define PWR_SRAM3_PAGE11_STOP
#define PWR_SRAM3_PAGE10_STOP
#define PWR_SRAM3_PAGE9_STOP
#define PWR_SRAM3_PAGE8_STOP
#define PWR_SRAM3_PAGE7_STOP
#define PWR_SRAM3_PAGE6_STOP
#define PWR_SRAM3_PAGE5_STOP
#define PWR_SRAM3_PAGE4_STOP
#define PWR_SRAM3_PAGE3_STOP
#define PWR_SRAM3_PAGE2_STOP
#define PWR_SRAM3_PAGE1_STOP
#define PWR_SRAM3_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_SRAM3_STOP0123
/* and */
/* For PAGEx you need to specify the page_indx and page_nbr */
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM3_PAGEx_STOP)
|
Example HAL_PWR_LP_EnableMemoryPageRetention(HAL_PWR_MEMORY_RETENTION_SRAM3_STOP0123 ,
page_idx,
page_nbr)
|
HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM3_FULL_STOP)
|
HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM3_STOP0123)
|
HAL PWR memory retention SRAM2 stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
|
HAL1 uses separate defines for each page given to the function
|
HAL2 use one single define:
|
#define PWR_SRAM2_PAGE2_STOP
#define PWR_SRAM2_PAGE1_STOP
#define PWR_SRAM2_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_SRAM2_STOP012
/* and */
/* For PAGEx you need to specify the page_indx and page_nbr */
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM2_PAGEx_STOP)
|
Example HAL_PWR_LP_EnableMemoryPageRetention(HAL_PWR_MEMORY_RETENTION_SRAM2_STOP012 ,
page_idx,
page_nbr)
|
HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM2_FULL_STOP)
|
HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM2_STOP012)
|
HAL PWR memory retention SRAM1 stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
|
HAL1 uses separate defines for each page given to the function
|
HAL2 use one single define:
|
#define PWR_SRAM1_PAGE1_STOP
#define PWR_SRAM1_PAGE2_STOP
#define PWR_SRAM1_PAGE3_STOP
#define PWR_SRAM1_PAGE4_STOP
#define PWR_SRAM1_PAGE5_STOP
#define PWR_SRAM1_PAGE6_STOP
#define PWR_SRAM1_PAGE7_STOP
#define PWR_SRAM1_PAGE8_STOP
#define PWR_SRAM1_PAGE9_STOP
#define PWR_SRAM1_PAGE10_STOP
#define PWR_SRAM1_PAGE11_STOP
#define PWR_SRAM1_PAGE12_STOP
#define PWR_SRAM1_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_SRAM1_STOP012
/* and */
/* For PAGEx you need to specify the page_indx and page_nbr */
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM1_PAGEx_STOP)
|
Example HAL_PWR_LP_EnableMemoryPageRetention(HAL_PWR_MEMORY_RETENTION_SRAM1_STOP012 ,
page_idx,
page_nbr)
|
HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM1_FULL_STOP)
|
HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM1_STOP012)
|
HAL PWR memory retention PKA32RAM stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_PKA32RAM_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_PKA32RAM_STOP0123
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_PKA32RAM_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_PKA32RAM_STOP0123)
|
HAL PWR memory retention GRAPHICPRAM stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_GRAPHICPRAM_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_GRAPHICPERIPHRAM_STOP0123
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_GRAPHICPRAM_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_GRAPHICPERIPHRAM_STOP0123)
|
HAL PWR memory retention PERIPHRAM stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_PERIPHRAM_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_PERIPHRAM_STOP0123
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_PERIPHRAM_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_PERIPHRAM_STOP0123)
|
HAL PWR memory retention DMA2DRAM stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_DMA2DRAM_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_DMA2DRAM_STOP0123
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_DMA2DRAM_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_DMA2DRAM_STOP0123)
|
HAL PWR memory retention DCACHE2 stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_DCACHE2_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_DCACHE2_STOP0123
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_DCACHE2_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_DCACHE2_STOP0123)
|
HAL PWR memory retention DCACHE1 stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_DCACHE1_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_DCACHE1_STOP0123
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_DCACHE1_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_DCACHE1_STOP0123)
|
HAL PWR memory retention ICACHE stop mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_ICACHE_FULL_STOP
|
#define HAL_PWR_MEMORY_RETENTION_ICACHE_STOP0123
|
|
Example HAL_PWREx_EnableRAMsContentStopRetention(PWR_ICACHE_FULL_STOP)
|
Example HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_ICACHE_STOP0123)
|
HAL PWR trigger mode constants ¶
|
HAL1 |
HAL2 |
|---|---|
|
|
#define PWR_PVM_MODE_NORMAL
#define PWR_AVD_MODE_NORMAL
#define PWR_PVD_MODE_NORMAL
#define PWR_PVM_MODE_IT_RISING_FALLING
#define PWR_PVM_MODE_IT_FALLING
#define PWR_PVM_MODE_IT_RISING
#define PWR_AVD_MODE_IT_RISING_FALLING
#define PWR_AVD_MODE_IT_FALLING
#define PWR_AVD_MODE_IT_RISING
#define PWR_PVD_MODE_IT_RISING_FALLING
#define PWR_PVD_MODE_IT_FALLING
#define PWR_PVD_MODE_IT_RISING
#define PWR_PVM_MODE_EVENT_RISING
#define PWR_PVM_MODE_EVENT_FALLING
#define PWR_PVM_MODE_EVENT_RISING_FALLING
#define PWR_AVD_MODE_EVENT_RISING
#define PWR_AVD_MODE_EVENT_FALLING
#define PWR_AVD_MODE_EVENT_RISING_FALLING
#define PWR_PVD_MODE_EVENT_RISING
#define PWR_PVD_MODE_EVENT_FALLING
#define PWR_PVD_MODE_EVENT_RISING_FALLING
|
/*! EXTI Triggers */
typedef enum
{
HAL_EXTI_TRIGGER_NONE
HAL_EXTI_TRIGGER_RISING
HAL_EXTI_TRIGGER_FALLING
HAL_EXTI_TRIGGER_RISING_FALLING
} hal_exti_trigger_t;
/*! EXTI Modes */
typedef enum
{
HAL_EXTI_MODE_INTERRUPT
HAL_EXTI_MODE_EVENT
HAL_EXTI_MODE_INTERRUPT_EVENT
} hal_exti_mode_t;
/*Example usage*/
EXTI_ConfigStructure.trigger = HAL_EXTI_TRIGGER_RISING_FALLING;
EXTI_ConfigStructure.gpio_port = HAL_EXTI_GPIOA;
HAL_EXTI_Init(&hexti, HAL_EXTI_LINE_16);
HAL_EXTI_SetConfig(&hexti, &EXTI_ConfigStructure);
HAL_EXTI_Enable(&hexti, HAL_EXTI_MODE_INTERRUPT);
|
Related concept:
Related use case:
HAL PWR smart run domain mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_SRD_DOMAIN_STOP
#define PWR_SRD_DOMAIN_RUN
|
typedef enum
{
HAL_PWR_SYSTEM_STOP_SRD_STOP
HAL_PWR_SYSTEM_STOP_SRD_RUN
} hal_pwr_system_mode_srd_mode_t;
|
Related concept:
HAL PWR wakeup pin polarity definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_PIN_POLARITY_HIGH
#define PWR_PIN_POLARITY_LOW
|
typedef enum
{
HAL_PWR_WAKEUP_PIN_POLARITY_LOW
HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
} hal_pwr_wakeup_pin_polarity_t;
|
Related concept:
HAL PWR supply configuration ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_SMPS_SUPPLY
#define PWR_LDO_SUPPLY
#define PWR_SUPPLY_CONFIG_MASK
#define PWR_EXTERNAL_SOURCE_SUPPLY
|
typedef enum
{
HAL_PWR_MAIN_REGULATOR_NOT_BYPASSED_SUPPLY = LL_PWR_MAIN_REGU_SUPPLY_NOT_BYPASSED,
HAL_PWR_MAIN_REGULATOR_BYPASSED_SUPPLY = LL_PWR_MAIN_REGU_SUPPLY_BYPASSED,
#if defined(PWR_SCCR_SMPSEN)
HAL_PWR_MAIN_REGULATOR_SMPS_SUPPLY = LL_PWR_MAIN_REGU_SUPPLY_SMPS_ENABLED,
#endif /* defined(PWR_SCCR_SMPSEN) */
HAL_PWR_MAIN_REGULATOR_LDO_SUPPLY = LL_PWR_MAIN_REGU_SUPPLY_LDO_ENABLED,
} hal_pwr_main_regulator_supply_t;
Removed,used only by the internal implementation (not impacting the user).
HAL_PWR_MAIN_REGULATOR_BYPASSED_SUPPLY
|
Related concept:
HAL PWR GPIO pull enumeration definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_PIN_NO_PULL
#define PWR_PIN_PULL_UP
#define PWR_PIN_PULL_DOWN
|
typedef enum
{
HAL_PWR_GPIO_NOPULL
HAL_PWR_GPIO_PULLUP
HAL_PWR_GPIO_PULLDOWN
} hal_pwr_gpio_pull_t;
|
Related concept:
HAL PWR battery charging resistor definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_BATTERY_CHARGING_RESISTOR_5
#define PWR_BATTERY_CHARGING_RESISTOR_1_5
|
typedef enum
{
HAL_PWR_BATTERY_CHARGING_RES_5K
HAL_PWR_BATTERY_CHARGING_RES_1_5K
} hal_pwr_battery_charging_res_value_t;
|
Related concept:
HAL PWR EXTI lines ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_EXTI_LINE_AVD
#define PWR_EVENT_LINE_AVD
#define PWR_EXTI_LINE_PVM4
#define PWR_EVENT_LINE_PVM4
#define PWR_EXTI_LINE_PVM3
#define PWR_EVENT_LINE_PVM3
#define PWR_EXTI_LINE_PVM2
#define PWR_EVENT_LINE_PVM2
#define PWR_EXTI_LINE_PVM1
#define PWR_EVENT_LINE_PVM1
#define PWR_EXTI_LINE_PVM
#define PWR_EVENT_LINE_PVM
#define PWR_EXTI_LINE_PVD
#define PWR_EVENT_LINE_PVD
|
In HAL2, Use HAL EXTI driver to configure the EXTI lines. Example EXTI_ConfigStructure.trigger = HAL_EXTI_TRIGGER_RISING_FALLING;
EXTI_ConfigStructure.gpio_port = HAL_EXTI_GPIOA;
HAL_EXTI_Init(&hexti, HAL_EXTI_LINE_16);
HAL_EXTI_SetConfig(&hexti, &EXTI_ConfigStructure);
HAL_EXTI_Enable(&hexti, HAL_EXTI_MODE_INTERRUPT);
|
Related use case:
HAL PWR voltage scaling range enumeration ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_REGULATOR_VOLTAGE_SCALE0
#define PWR_REGULATOR_VOLTAGE_SCALE1
#define PWR_REGULATOR_VOLTAGE_SCALE2
#define PWR_REGULATOR_VOLTAGE_SCALE3
#define PWR_REGULATOR_VOLTAGE_SCALE4
|
typedef enum
{
HAL_PWR_VOLT_SCALE_0
HAL_PWR_VOLT_SCALE_1
HAL_PWR_VOLT_SCALE_2
HAL_PWR_VOLT_SCALE_3
HAL_PWR_VOLT_SCALE_4
} hal_pwr_volt_scale_range_t;
|
Related concept:
HAL PWR analog voltage detector level ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_AVDLEVEL_0
#define PWR_AVDLEVEL_1
#define PWR_AVDLEVEL_2
#define PWR_AVDLEVEL_3
|
typedef enum
{
HAL_PWR_AVD_LEVEL_0
HAL_PWR_AVD_LEVEL_1
HAL_PWR_AVD_LEVEL_2
HAL_PWR_AVD_LEVEL_3
} hal_pwr_avd_level_t;
|
Related concept:
HAL PWR battery charging status ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_BATTERY_CHARGING_ENABLE
#define PWR_BATTERY_CHARGING_DISABLE
|
typedef enum
{
HAL_PWR_BATTERY_CHARGING_DISABLED ,
HAL_PWR_BATTERY_CHARGING_ENABLED
} hal_pwr_battery_charging_status_t;
|
Related concept:
HAL PWR voltage monitor definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_PVM_4
#define PWR_PVM_3
#define PWR_PVM_2
#define PWR_PVM_1
|
#define HAL_PWR_VDD_ANALOG_MONITOR_0
#define HAL_PWR_VDD_ANALOG_MONITOR_1
#define HAL_PWR_VDD_ANALOG_MONITOR_2
#define HAL_PWR_VDD_USB_MONITOR
|
HAL PWR wakeup pin definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN1
#define PWR_WAKEUP_PIN2
#define PWR_WAKEUP_PIN3
#define PWR_WAKEUP_PIN4
#define PWR_WAKEUP_PIN6
#define PWR_WAKEUP_PIN7
#define PWR_WAKEUP_PIN8
|
#define HAL_PWR_WAKEUP_PIN_1
#define HAL_PWR_WAKEUP_PIN_2
#define HAL_PWR_WAKEUP_PIN_3
#define HAL_PWR_WAKEUP_PIN_4
#define HAL_PWR_WAKEUP_PIN_5
#define HAL_PWR_WAKEUP_PIN_6
#define HAL_PWR_WAKEUP_PIN_7
#define HAL_PWR_WAKEUP_PIN_8
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1)
|
Example HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_1)
|
HAL PWR wakeup pin low definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN1_LOW
#define PWR_WAKEUP_PIN2_LOW
#define PWR_WAKEUP_PIN3_LOW
#define PWR_WAKEUP_PIN4_LOW
#define PWR_WAKEUP_PIN6_LOW
#define PWR_WAKEUP_PIN7_LOW
#define PWR_WAKEUP_PIN8_LOW
|
#define HAL_PWR_WAKEUP_PIN_1
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_2
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_3
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_4
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_5
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_6
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_7
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_8
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW)
|
Example HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_1, HAL_PWR_WAKEUP_PIN_POLARITY_LOW)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_1)
|
HAL PWR wakeup pin high definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN1_HIGH
#define PWR_WAKEUP_PIN2_HIGH
#define PWR_WAKEUP_PIN3_HIGH
#define PWR_WAKEUP_PIN4_HIGH
#define PWR_WAKEUP_PIN6_HIGH
#define PWR_WAKEUP_PIN7_HIGH
#define PWR_WAKEUP_PIN8_HIGH
|
#define HAL_PWR_WAKEUP_PIN_1
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_2
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_3
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_4
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_5
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_6
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_7
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_8
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_HIGH)
|
Example HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_1, HAL_PWR_WAKEUP_PIN_POLARITY_HIGH)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_1)
|
HAL PWR wakeup pin 1 low source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN1_LOW_0
#define PWR_WAKEUP_PIN1_LOW_1
#define PWR_WAKEUP_PIN1_LOW_2
|
#define HAL_PWR_WAKEUP_PIN_1
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_1
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_1
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_LOW
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_1, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_1)
|
HAL PWR wakeup pin 2 low source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN2_LOW_0
#define PWR_WAKEUP_PIN2_LOW_1
#define PWR_WAKEUP_PIN2_LOW_2
|
#define HAL_PWR_WAKEUP_PIN_2
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_2
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_2
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN2_LOW_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_LOW
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_2, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_2)
|
HAL PWR wakeup pin 3 low source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN3_LOW_0
#define PWR_WAKEUP_PIN3_LOW_1
#define PWR_WAKEUP_PIN3_LOW_2
|
#define HAL_PWR_WAKEUP_PIN_3
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_3
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_3
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW_3)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_LOW
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_3
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_1, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_1)
|
HAL PWR wakeup pin 4 low source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN4_LOW_0
#define PWR_WAKEUP_PIN4_LOW_1
#define PWR_WAKEUP_PIN4_LOW_2
|
#define HAL_PWR_WAKEUP_PIN_4
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_4
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_4
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW_4)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_LOW
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_4
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_1, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_1)
|
HAL PWR wakeup pin 5 low source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN5_LOW_0
#define PWR_WAKEUP_PIN5_LOW_1
#define PWR_WAKEUP_PIN5_LOW_2
|
#define HAL_PWR_WAKEUP_PIN_5
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_5
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_5
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW_5)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_LOW
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_5
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_1, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_1)
|
HAL PWR wakeup pin 6 low source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN6_LOW_0
#define PWR_WAKEUP_PIN6_LOW_1
#define PWR_WAKEUP_PIN6_LOW_2
|
#define HAL_PWR_WAKEUP_PIN_6
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_6
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_6
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW_6)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_LOW
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_6
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_6, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_6)
|
HAL PWR wakeup pin 7 low source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN7_LOW_0
#define PWR_WAKEUP_PIN7_LOW_1
#define PWR_WAKEUP_PIN7_LOW_2
|
#define HAL_PWR_WAKEUP_PIN_7
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_7
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_7
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW_7)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_LOW
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_7
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_7, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_7)
|
HAL PWR wakeup pin 8 low source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN8_LOW_0
#define PWR_WAKEUP_PIN8_LOW_1
#define PWR_WAKEUP_PIN8_LOW_2
|
#define HAL_PWR_WAKEUP_PIN_8
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_8
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_8
#define HAL_PWR_WAKEUP_PIN_POLARITY_LOW
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_LOW_8)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_LOW
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_8, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_8)
|
HAL PWR wakeup pin 1 high source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN1_HIGH_0
#define PWR_WAKEUP_PIN1_HIGH_1
#define PWR_WAKEUP_PIN1_HIGH_2
|
#define HAL_PWR_WAKEUP_PIN_1
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_1
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_1
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN1_HIGH_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_1, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_1)
|
HAL PWR wakeup pin 2 high source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN2_HIGH_0
#define PWR_WAKEUP_PIN2_HIGH_1
#define PWR_WAKEUP_PIN2_HIGH_2
|
#define HAL_PWR_WAKEUP_PIN_2
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_2
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_2
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN2_HIGH_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_2, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_2)
|
HAL PWR wakeup pin 3 high source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN3_HIGH_0
#define PWR_WAKEUP_PIN3_HIGH_1
#define PWR_WAKEUP_PIN3_HIGH_2
|
#define HAL_PWR_WAKEUP_PIN_3
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_3
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_3
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN3_HIGH_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_3, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_3)
|
HAL PWR wakeup pin 4 high source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN4_HIGH_0
#define PWR_WAKEUP_PIN4_HIGH_1
#define PWR_WAKEUP_PIN4_HIGH_2
|
#define HAL_PWR_WAKEUP_PIN_4
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_4
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_4
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN4_HIGH_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_4, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_4)
|
HAL PWR wakeup pin 5 high source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN5_HIGH_0
#define PWR_WAKEUP_PIN5_HIGH_1
#define PWR_WAKEUP_PIN5_HIGH_2
|
#define HAL_PWR_WAKEUP_PIN_5
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_5
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_5
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN5_HIGH_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_5, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_5)
|
HAL PWR wakeup pin 6 high source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN6_HIGH_0
#define PWR_WAKEUP_PIN6_HIGH_1
#define PWR_WAKEUP_PIN6_HIGH_2
|
#define HAL_PWR_WAKEUP_PIN_6
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_6
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_6
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN6_HIGH_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_6, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_6)
|
HAL PWR wakeup pin 7 high source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN7_HIGH_0
#define PWR_WAKEUP_PIN7_HIGH_1
#define PWR_WAKEUP_PIN7_HIGH_2
|
#define HAL_PWR_WAKEUP_PIN_7
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_7
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_7
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN7_HIGH_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_7, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_7)
|
HAL PWR wakeup pin 8 high source definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_WAKEUP_PIN8_HIGH_0
#define PWR_WAKEUP_PIN8_HIGH_1
#define PWR_WAKEUP_PIN8_HIGH_2
|
#define HAL_PWR_WAKEUP_PIN_8
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_0
#define HAL_PWR_WAKEUP_PIN_8
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_1
#define HAL_PWR_WAKEUP_PIN_8
#define HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
#define HAL_PWR_WAKEUP_PIN_SOURCE_2
|
|
Example HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN8_HIGH_0)
|
Example hal_pwr_wakeup_pin_config_t p_config
p_config.polarity = HAL_PWR_WAKEUP_PIN_POLARITY_HIGH
p_config.source = HAL_PWR_WAKEUP_PIN_SOURCE_0
HAL_PWR_LP_SetConfigWakeupPin(HAL_PWR_WAKEUP_PIN_8, &p_config)
HAL_PWR_LP_EnableWakeupPin(HAL_PWR_WAKEUP_PIN_8)
|
HAL PWR power voltage detector level ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_PVDLEVEL_0
#define PWR_PVDLEVEL_1
#define PWR_PVDLEVEL_2
#define PWR_PVDLEVEL_3
#define PWR_PVDLEVEL_4
#define PWR_PVDLEVEL_5
#define PWR_PVDLEVEL_6
#define PWR_PVDLEVEL_7
|
typedef enum
{
HAL_PWR_PVD_LEVEL_0
HAL_PWR_PVD_LEVEL_1
HAL_PWR_PVD_LEVEL_2
HAL_PWR_PVD_LEVEL_3
HAL_PWR_PVD_LEVEL_4
HAL_PWR_PVD_LEVEL_5
HAL_PWR_PVD_LEVEL_6
HAL_PWR_PVD_LEVEL_7
} hal_pwr_pvd_level_t;
|
Related concept:
HAL PWR power independent USB voltage monitor ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_UVM
|
Removed; In HAL2, the PWR enable
void HAL_PWR_EnableVddUSBMonitor(void)
void HAL_PWR_DisableVddUSBMonitor(void)
|
HAL PWR power enable the independent I/Os supply monitor ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_IO2VM
|
Removed; In HAL2, the PWR enable
void HAL_PWR_EnableVddIO2Monitor(void)
void HAL_PWR_DisableVddIO2Monitor(void)
|
HAL PWR flash power down modes ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_FLASHPD_LPRUN
#define PWR_FLASHPD_LPSLEEP
#define PWR_FLASHPD_STOP
|
typedef enum
{
HAL_PWR_FLASHPD_LPRUN
HAL_PWR_FLASHPD_LPSLEEP
HAL_PWR_FLASHPD_STOP
} hal_pwr_flash_powerdown_mode_t;
|
Related concept:
HAL PWR GPIO pin definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_GPIO_BIT_0
#define PWR_GPIO_BIT_1
#define PWR_GPIO_BIT_2
#define PWR_GPIO_BIT_3
#define PWR_GPIO_BIT_4
#define PWR_GPIO_BIT_5
...
#define PWR_GPIO_BIT_15
|
#define HAL_PWR_GPIO_PIN_0
#define HAL_PWR_GPIO_PIN_1
#define HAL_PWR_GPIO_PIN_2
#define HAL_PWR_GPIO_PIN_3
#define HAL_PWR_GPIO_PIN_4
#define HAL_PWR_GPIO_PIN_5
...
#define HAL_PWR_GPIO_PIN_15
#define HAL_PWR_GPIO_PIN_ALL
|
HAL PWR backup register index enumeration definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_BKP_DR0
#define PWR_BKP_DR1
#define PWR_BKP_DR2
#define PWR_BKP_DR3
|
typedef enum
{
HAL_PWR_BACKUP_REG_0
HAL_PWR_BACKUP_REG_1
HAL_PWR_BACKUP_REG_2
HAL_PWR_BACKUP_REG_3
} hal_pwr_backup_reg_index_t;
|
Related concept:
HAL PWR GPIO port ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_GPIO_A
#define PWR_GPIO_B
#define PWR_GPIO_C
#define PWR_GPIO_D
...
#define PWR_GPIO_J
|
typedef enum
{
HAL_PWR_GPIO_PORT_A
HAL_PWR_GPIO_PORT_B
HAL_PWR_GPIO_PORT_C
HAL_PWR_GPIO_PORT_D
...
HAL_PWR_GPIO_PORT_J
} hal_pwr_gpio_port_t;
|
Related concept:
HAL PWR power down definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_FLASHPD_SLEEP
#define PWR_FLASHPD_STOP
|
#define HAL_PWR_FLASH_SLEEP_MODE
#define HAL_PWR_FLASH_STOP_MODE
|
HAL PWR flag constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_FLAG_STOPF
#define PWR_FLAG_SBF
#define PWR_FLAG_VDDA2RDY
#define PWR_FLAG_VDDA1RDY
#define PWR_FLAG_VDDIO2RDY
#define PWR_FLAG_VDDUSBRDY
#define PWR_FLAG_ACTVOSRDY
#define PWR_FLAG_PVDO
#define PWR_FLAG_REGS
#define PWR_FLAG_TEMPH
#define PWR_FLAG_TEMPL
#define PWR_FLAG_VBATH
...
#define PWR_WAKEUP_FLAG1
#define PWR_WAKEUP_FLAG2
#define PWR_WAKEUP_FLAG3
#define PWR_WAKEUP_FLAG4
#define PWR_WAKEUP_FLAG5
#define PWR_WAKEUP_FLAG6
#define PWR_WAKEUP_FLAG7
#define PWR_WAKEUP_FLAG8
|
Removed; use the following LL defines instead : #define LL_PWR_FLAG_STOPF
#define LL_PWR_FLAG_SBF
#define LL_PWR_FLAG_VDDA2RDY
#define LL_PWR_FLAG_VDDA1RDY
#define LL_PWR_FLAG_VDDIO2RDY
#define LL_PWR_FLAG_VDDUSBRDY
#define LL_PWR_FLAG_ACTVOSRDY
#define LL_PWR_FLAG_PVDO
#define LL_PWR_FLAG_REGS
#define LL_PWR_FLAG_TEMPH
#define LL_PWR_FLAG_TEMPL
#define LL_PWR_FLAG_VBATH
...
#define LL_PWR_WAKEUP_FLAG1
#define LL_PWR_WAKEUP_FLAG2
#define LL_PWR_WAKEUP_FLAG3
#define LL_PWR_WAKEUP_FLAG4
#define LL_PWR_WAKEUP_FLAG5
#define LL_PWR_WAKEUP_FLAG6
#define LL_PWR_WAKEUP_FLAG7
#define LL_PWR_WAKEUP_FLAG8
|
|
Example __HAL_PWR_GET_FLAG(PWR_FLAG_STOPF)
|
Example LL_PWR_IsActiveFlag_STOP(void)
|
Note
All PWR flag definitions are removed from HAL2 . Use there equivalent LL services instead.
Related concepts:
HAL PWR voltage monitoring enable for USB peripheral ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_PVM_USB
|
Removed; In HAL2, the PWR enable
void HAL_PWR_EnableVoltageMonitor(uint32_t monitor)
void HAL_PWR_DisableVoltageMonitor(uint32_t monitor)
|
HAL PWR sleep/stop mode entry ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_STOPENTRY_WFE
#define PWR_SLEEPENTRY_WFE
#define PWR_STOPENTRY_WFI
#define PWR_SLEEPENTRY_WFI
|
typedef enum
{
HAL_PWR_LOW_PWR_MODE_WFE
HAL_PWR_LOW_PWR_MODE_WFI
} hal_pwr_low_pwr_mode_entry_t;
|
HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON,
PWR_STOPENTRY_WFE)
HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON,
PWR_STOPENTRY_WFI)
HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFE)
HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI)
|
HAL_PWR_EnterStopMode(HAL_PWR_LOW_PWR_MODE_WFE,
HAL_PWR_STOP0_MODE)
HAL_PWR_EnterStopMode(HAL_PWR_LOW_PWR_MODE_WFI,
HAL_PWR_STOP0_MODE)
HAL_PWR_EnterSleepMode(HAL_PWR_LOW_PWR_MODE_WFE)
HAL_PWR_EnterSleepMode(HAL_PWR_LOW_PWR_MODE_WFI)
|
Related concept:
HAL PWR low power mode selection definition ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_LOWPOWERMODE_STOP0
#define PWR_LOWPOWERMODE_STOP1
#define PWR_LOWPOWERMODE_STANDBY
#define PWR_LOWPOWERMODE_SHUTDOWN
|
typedef enum
{
HAL_PWR_STOP0_MODE
HAL_PWR_STOP1_MODE
} hal_pwr_stop_mode_t;
|
Related concept:
HAL PWR regulator in main mode ¶
|
HAL1 |
HAL2 |
|---|---|
#define PWR_MAINREGULATOR_ON
#define PWR_LOWPOWERREGULATOR_ON
|
Removed; In HAL2, the PWR main regulator on is managed by unitary functions in the HAL layer. HAL_PWR_ExitLowPowerRunMode(void)
HAL_PWR_EnterLowPowerRunMode(void)
|